package by.grsu.pochebut.webpage;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import by.grsu.pochebut.webpage.booking.ListBookingPage;
import by.grsu.pochebut.webpage.car.ListCarPage;
import by.grsu.pochebut.webpage.client.ListClientPage;

public class MyPage extends WebPage {
	
	public MyPage()
	{
		super();
		
		add(new Link<Void>("home") {

			@Override
			public void onClick() {
				setResponsePage(MyPage.class);

			}
		});
		
		add(new Link<Void>("car") {

			@Override
			public void onClick() {
				setResponsePage(ListCarPage.class);

			}
		});

		add(new Link<Void>("client") {

			@Override
			public void onClick() {
				setResponsePage(ListClientPage.class);

			}
		});	
		
		add(new Link<Void>("booking") {

			@Override
			public void onClick() {
				setResponsePage(ListBookingPage.class);

			}
		});	
	}
}
